/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package inheritbeing;

import javax.xml.crypto.Data;

/**
 *
 * @author Admin
 */
public class Employee extends Person
{
    
   private String profession;
   private int experience;
   private int salary;

    public Employee(String profession, int experience, int salary, String name, Data dob, String sex, double weight, int growth, int age)
    {
        super(name, dob, sex, weight, growth, age);
        this.profession = profession;
        this.experience = experience;
        this.salary = salary;
    }
   
   
   

    public Employee(String name, Data dob, String sex, double weight, int growth, int age)
    {
        super(name, dob, sex, weight, growth, age);
    }
    
}
